import request from '@/utils/request'

// 查询资金预定列表
export function listFundmanage(query) {
  return request({
    url: '/supply/fundmanage/list',
    method: 'get',
    params: query
  })
}

// 查询资金预定详细
export function getFundmanage(id) {
  return request({
    url: '/supply/fundmanage/' + id,
    method: 'get'
  })
}

// 新增资金预定
export function addFundmanage(data) {
  return request({
    url: '/supply/fundmanage',
    method: 'post',
    data: data
  })
}

// 修改资金预定
export function updateFundmanage(data) {
  return request({
    url: '/supply/fundmanage',
    method: 'put',
    data: data
  })
}

// 删除资金预定
export function delFundmanage(id) {
  return request({
    url: '/supply/fundmanage/' + id,
    method: 'delete'
  })
}
